package com.wuhen.sql;

import android.app.IntentService;
import android.content.Intent;
import android.content.Context;
import android.text.format.Time;
import android.util.Log;




public class TimeService extends IntentService {


    public TimeService() {
        super("TimeService");
    }


    @Override
    protected void onHandleIntent(Intent intent) {
        Time time = new Time();
        time.setToNow();
        String timesString = time.format("%Y-%m-%d %H:%M:%S");
        Log.i("当前时间", timesString);

    }


}
